package com.zhao.dao;

import com.zhao.pojo.Ebick;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EbickDao {
    List<Ebick> findAll(String universityID);
    Ebick findByID(String EbickID,String universityID);
    int add(Ebick ebick);
    int updateStatus(Ebick ebick);
    int updateStatusAndReason(Ebick ebick);
    int updateOwner(Ebick ebick);
    List<Ebick> findAllByNowOwnerID(String nowOwnerID,String universityID);
    List<Ebick> findAllByNowOwnerIDAndStatus(String nowOwnerID,String status,String universityID);
    List<Ebick> findAllByNowOwnerIDAndNotStatus(String nowOwnerID,String status,String universityID);
}
